home *** CD-ROM | disk | FTP | other *** search
- onEnterFrame = function()
- {
- if(_parent._parent.man._x < this.getBounds(_parent._parent).xMin)
- {
- this._x -= 10;
- }
- else
- {
- this._x += 10;
- }
- if(_parent._parent.man.getBounds(_parent._parent).yMin < this.getBounds(_parent._parent).yMax)
- {
- this._y -= 5;
- }
- else
- {
- this._y += 5;
- }
- if(Math.abs(_parent._parent.man._x - this.getBounds(_parent._parent).xMin) < 10)
- {
- this.removeMovieClip();
- }
- };
-